from gpiozero import LED
from gpiozero import LEDBoard
from gpiozero import Button
from signal import pause

def led01():
    # led_red = LED('BOARD11')
    print('led')
    led_red = LED(18)
    led_red.blink()
    pause()

def led_board():
    led_board = LEDBoard(17,18,27)
    led_board.blink()
    pause()

def pressed():
    led_red = LED(18)
    led_red.on()
    print('pressed')

def released():
    led_red = LED(18)
    led_red.off()
    print('released')

def button():
    btn = Button(17)

    btn.when_pressed = pressed
    btn.when_released = released
    pause()


if __name__ == '__main__':
    led01()
    # led_board()
    # button()
